<?php
class AdminCustomerForm extends sfForm
{
	public function configure()
    {
		$this->setWidgets(array(
                'phone_number'               	=> new sfWidgetFormInput(),
                'name'                			=> new sfWidgetFormInput(),
				'email'                			=> new sfWidgetFormInput()
				));
		$this->setValidators(array(
	            'phone_number'               	=>  new sfValidatorString(array('required' => false)),
	            'name'                			=>  new sfValidatorString(array('required' => false)),
				'email'                			=>  new sfValidatorString(array('required' => false))
		));
        $this->widgetSchema->setNameFormat('customer[%s]');
		$this->widgetSchema->setLabels(array(
				'phone_number'					=> 'Số Điện Thoại',
				'name'							=> 'Tên',
				'email'							=> 'Email',
		));
	}
}
?>